import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { FormsModule } from '@angular/forms';
import { HeaderComponent } from './header/header.component';
import { MenuComponent } from './menu/menu.component';
import { SidebarComponent } from './sidebar/sidebar.component';
import { ContentComponent } from './content/content.component';
import { FooterComponent } from './footer/footer.component';
import { StokeListComponent } from './stoke/stoke-list/stoke-list.component';
import { StraComponent } from './stra/stra.component';



@NgModule({
  declarations: [
    AppComponent,
    MenuComponent,
    SidebarComponent,
    HeaderComponent,
    ContentComponent,
    FooterComponent,
    StokeListComponent,
    StraComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
// 只能声明指令和管道�, HeaderComponent�组件
// @NgModule({
//   declarations: [
//     AppComponent,
//     MenuComponent,
//     SidebarComponent,
//     HeaderComponent
//   ],
//   imports: [ // 运行需要用的其他模块
//     BrowserModule, // 浏览器模块
//     FormsModule, // 处理表单的模块（也是使用[(ngModel)]需要的模块）
//     // HttpClient // httpModule在angular4以后被HttpClient取代，http请求模块
//   ],
//   providers: [], // 模块提供的服务（处理逻辑的js）
//   bootstrap: [AppComponent] // 模块声明的主组件
// })
